package com.feng.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AntController {
    //http://localhost:8080/demo2/a
    //@RequestMapping("/ant/?")
    public String AntTest(){
        return "ant";
    }
    //http://localhost:8080/demo2/ant/:dd
    //@RequestMapping("/ant/*")
    //http://localhost:8080/demo2/ant/:dd/d
    @RequestMapping("/ant/**")
    public String AntTest2(){
        return "ant";
    }
}
